package com.we.risk.phoneRecord.var.dimphone;

import static com.we.utils.RegexTools.hiveUdfRegExpEx;

public class TagCallRecord {
    static public final String family_tag = "老豆|父|母|爸|妈|爹|娘|爷爷|奶奶|老公|公公|老公|老婆|婆娘|外婆|婆婆|丈夫|媳妇|妻子|夫人|儿子|女儿|dad|mom|姐|妹|哥|姐|弟|妹|姨|姑|舅|叔|伯|婶|亲人|爱人|亲爱baby|honey|宝贝|宝宝|darling";
    static public final String loan_tag = "贷|借|骗|套现|现金|代刷|口子|提额|刷卡|催收|分期|债";
    static public final String collect_tag = "催收";
    static public final String bet_tag = "庄家|荷官|钱庄|赌|博彩|彩票|今彩|大馬彩|大马彩|威力彩|六合|乐透|樂透|澳門|星彩|雙贏彩|菠菜|博彩|博金|彩票|投注|Bet|bet|水位|盘口|赌场|娱乐城|银河娱乐|合彩|葡京|足彩|红单|体彩|外围|开奖|双色球|toto|TOTO|Toto|lottery|Lottery|lotto|Lotto|casino|Casino|老虎机|轮盘|百家乐|Slot|slot|雙色球|老虎機|輪盤|賭場|盤口|百家樂|赛马";
    static public final String drug_tag = "海洛因|K粉|k粉|大麻|摇头丸|可卡因|冰毒|麻谷|麻果|开心水|HAPPY水";
    static public final String drug2_tag = "毒药|毒品";
    static public final String name_loan2_tag = "贷|借|骗|套现|现金|代刷|口子|提额|刷卡|催收|分期|债";
    static public final String number_loan2_tag = "\\(021\\)|\\(010\\)|\\(0755\\)|\\(0571\\)|\\(0213844\\)";
    static public final String name_bet2_tag = "庄家|荷官|钱庄|赌|博彩|彩票|今彩|大馬彩|大马彩|威力彩|六合|乐透|樂透|澳門|星彩|雙贏彩|菠菜|博彩|博金|彩票|投注|Bet|bet|水位|盘口|赌场|娱乐城|银河娱乐|合彩|葡京|足彩|红单|体彩|外围|开奖|双色球|toto|TOTO|Toto|lottery|Lottery|lotto|Lotto|casino|Casino|老虎机|轮盘|百家乐|Slot|slot|雙色球|老虎機|輪盤|賭場|盤口|百家樂|赛马";
    static public final String number_bet2_tag = "\\(021\\)|\\(010\\)|\\(0755\\)|\\(0571\\)|\\(0213844\\)";
    static public final String game_tag = "娱乐|ktv|KTV|网吧|网管|游戏|台球|保龄球|桌游|剧本|密室|麻将|夜店";
    static public final String game2_tag = "私人会所|游艇|商会|私人银行|私行|保险柜|保险箱";
    static public final String sport_tag = "高尔夫|滑雪|跳伞|潜水|马术|击剑";
    static public final String sport2_tag = "健身|运动|跑步|教练";
    static public final String patrio_tag = "党支部|党办|党组织|党委|党建|党员|党校|党课|党史";
    static public final String office_tag = "科室|办公室";
    static public final String foreign_tag = "美国|英国|日本|澳大利亚|澳洲";
    static public final String religion_tag = "基督|伊斯兰|佛祖|如来佛|佛主|活佛|教堂|牧师|洗礼|礼拜|寺庙|少林寺|喇嘛|道观|道士|尼姑|萨满|出马仙|保家仙|仙人|供奉";
    static public final String eng_tag = "留学|新东方|雅思|托福|GMAT|GRE|gmat|gre|新东方|英孚";
    static public final String agent_tag = "中介";
    static public final String house_tag = "链家|中原|买房|租房|我爱我家|房天下|自如|安居客|贝壳|丽兹行|房多多|嗨住";
    static public final String transfer_tag = "快递|骑士|骑手|送餐|配送|闪送";
    static public final String clean_tag = "保洁|清洁|打扫|家政|钟点工|保姆";
    static public final String sex_tag = "老鸨|鸡头|大茶壶|龟公|红灯区|妓院|学生妹|少妇|鸨母|卖淫|招妓|性奴";
    static public final String sex_tag_filter = "鸡头米";
    static public final String dirty_tag = "尿|屎|屁";
    static public final String dirty_tag_filter = "泌尿";
    static public final String travel_tag = "旅行|签证|旅游|租车|酒店";
    static public final String finance_tag = "理财|保险|投资";
    static public final String tax_tag = "所得税|个税|公积金";
    static public final String car_tag = "买车|汽车|修车";
    static public final String car2_tag = "奔驰|宝马|奥迪|劳斯莱斯|宾利|迈巴赫|法拉利|兰博基尼|迈凯伦|阿斯顿|布加迪";
    static public final String manage_tag = "高管|总监|部门长|执行官|总裁|老板|总经理|董事|主管|主任|科长|总|部长|行长";
    static public final String beauty_tag = "美容|整形|医美|整容|造型|发型|化妆";
    static public final String doctor_tag = "医生|医院|外科|内科";
    static public final String tech_tag = "工程师";
    static public final String children_tag = "育儿|孕|幼儿园|学习|老师|班主任|小学|初中|高中";
    static public final String pyramid_tag = "传销";
    static public final String cult_tag = "法轮功|主神|灵灵教";

    public static String getNameTags(String name, String call_num) {
        return ""
                + getFamilyTag(name)
                + getLoanTag(name)
                + getCollectTag(name)
                + getBetTag(name)
                + getDrugTag(name)
                + getDrug2Tag(name)
                + getLoan2Tag(name, call_num)
                + getbet2Tag(name, call_num)
                + getGameTag(name)
                + getGame2Tag(name)
                + getSportTag(name)
                + getSport2Tag(name)
                + getPatrioTag(name)
                + getOfficeTag(name)
                + getForeignTag(name)
                + getReligionTag(name)
                + getEngTag(name)
                + getAgentTag(name)
                + getHouseTag(name)
                + getTransferTag(name)
                + getCleanTag(name)
                + getSexTag(name)
                + getDirtyTag(name)
                + getTravelTag(name)
                + getFinanceTag(name)
                + getTaxTag(name)
                + getCarTag(name)
                + getCar2Tag(name)
                + getManageTag(name)
                + getBeautyTag(name)
                + getDocotorTag(name)
                + getTechTag(name)
                + getChildTag(name)
                + getPyramid(name)
                + getCultTag(name);
    }

    //1
    private static int getFamilyTag(String name) {
        return hiveUdfRegExpEx(name, family_tag);
    }
    //2
    private static int getLoanTag(String name) {
        return hiveUdfRegExpEx(name, loan_tag);
    }

    private static int getCollectTag(String name) {
        return hiveUdfRegExpEx(name, collect_tag);
    }

    private static int getBetTag(String name) {
        return hiveUdfRegExpEx(name, bet_tag);
    }
    //5
    private static int getDrugTag(String name) {
        return hiveUdfRegExpEx(name, drug_tag);
    }

    private static int getDrug2Tag(String name) {
        return hiveUdfRegExpEx(name, drug2_tag);
    }
    //7
    private static int getLoan2Tag(String name, String call_num) {
        return (hiveUdfRegExpEx(name, name_loan2_tag) & hiveUdfRegExpEx(call_num, number_loan2_tag));
    }
    //8
    private static int getbet2Tag(String name, String call_num) {
        return (hiveUdfRegExpEx(name, name_bet2_tag) & hiveUdfRegExpEx(call_num, number_bet2_tag));
    }

    private static int getGameTag(String name) {
        return hiveUdfRegExpEx(name, game_tag);
    }
    //10
    private static int getGame2Tag(String name) {
        return hiveUdfRegExpEx(name, game2_tag);
    }

    private static int getSportTag(String name) {
        return hiveUdfRegExpEx(name, sport_tag);
    }
    private static int getSport2Tag(String name) {
        return hiveUdfRegExpEx(name, sport2_tag);
    }

    private static int getPatrioTag(String name) {
        return hiveUdfRegExpEx(name, patrio_tag);
    }

    private static int getOfficeTag(String name) {
        return hiveUdfRegExpEx(name, office_tag);
    }
    //15
    private static int getForeignTag(String name) {
        return hiveUdfRegExpEx(name, foreign_tag);
    }

    private static int getReligionTag(String name) {
        return hiveUdfRegExpEx(name, religion_tag);
    }

    private static int getEngTag(String name) {
        return hiveUdfRegExpEx(name, eng_tag);
    }

    private static int getAgentTag(String name) {
        return hiveUdfRegExpEx(name, agent_tag);
    }

    private static int getHouseTag(String name) {
        return hiveUdfRegExpEx(name, house_tag);
    }
    //20
    private static int getTransferTag(String name) {
        return hiveUdfRegExpEx(name, transfer_tag);
    }

    private static int getCleanTag(String name) {
        return hiveUdfRegExpEx(name, clean_tag);
    }
    //22
    private static int getSexTag(String name) {
        if(hiveUdfRegExpEx(name, sex_tag_filter) == 0) {
            return hiveUdfRegExpEx(name, sex_tag);
        }
        return 0;
    }
    //23
    private static int getDirtyTag(String name) {
        if(hiveUdfRegExpEx(name, dirty_tag_filter) == 0) {
            return hiveUdfRegExpEx(name, dirty_tag);
        }
        return 0;
    }

    private static int getTravelTag(String name) {
        return hiveUdfRegExpEx(name, travel_tag);
    }
    //25
    private static int getFinanceTag(String name) {
        return hiveUdfRegExpEx(name, finance_tag);
    }

    private static int getTaxTag(String name) {
        return hiveUdfRegExpEx(name, tax_tag);
    }

    private static int getCarTag(String name) {
        return hiveUdfRegExpEx(name, car_tag);
    }
    private static int getCar2Tag(String name) {
        return hiveUdfRegExpEx(name, car2_tag);
    }

    private static int getManageTag(String name) {
        return hiveUdfRegExpEx(name, manage_tag);
    }
    //30
    private static int getBeautyTag(String name) {
        return hiveUdfRegExpEx(name, beauty_tag);
    }

    private static int getDocotorTag(String name) {
        return hiveUdfRegExpEx(name, doctor_tag);
    }

    private static int getTechTag(String name) {
        return hiveUdfRegExpEx(name, tech_tag);
    }

    private static int getChildTag(String name) {
        return hiveUdfRegExpEx(name, children_tag);
    }

    private static int getPyramid(String name) {
        return hiveUdfRegExpEx(name, pyramid_tag);
    }
    //35
    private static int getCultTag(String name) {
        return hiveUdfRegExpEx(name, cult_tag);
    }
}
